from digitaldiary.musicinfo.models import Music,Range
from django.contrib import admin

class MusicAdmin(admin.ModelAdmin):
	list_display=('title',)
	search_fields= ('title',)

class RangeAdmin(admin.ModelAdmin):
	list_display=('music','date_start','date_stop','still_on_player')
	list_filter = ('date_stop',)
	search_fields= ('music__title',)
admin.site.register(Music,MusicAdmin)
admin.site.register(Range, RangeAdmin)
